Skip to content

Conversation

siverne
Copy link
Member

@siverne siverne commented Nov 15, 2026

Closes #56. Three peer reviewers asked for this: the hearts were saved, but the list was not shown anywhere.

  • /mine now shows the wines on the «Vil prøve» list, newest first, with the same cards as the search page. The placeholder route is gone (PlaceholderPage is still used for 404).
  • Empty state explains how to save a wine and links to the search.
  • Removing a heart updates the list at once.
  • The API has no "wines by id" query, so the page asks for each wine as its own field (wine0, wine1 …) in one request. The Apollo cache reuses wines the user has already seen.
  • «Mine dommer» is a short note until login (Account system #29) is in the frontend.
  • Tests for the page and the query builder, including axe.

Tested: npm run check passes.

@siverne siverne requested a review from a team as a code owner November 15, 2026 17:15
Copy link
Member

@williasc williasc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Functionality works as described. Removing a wine updates the list from the cache and doesn't send a new request which is great. Stale or invalid id's return null so removed wines don't break the page and empty-states and errors work fine.

Approved to merge

@williasc williasc merged commit a754480 into main Nov 16, 2026
@williasc williasc deleted the 56-my-page branch November 16, 2026 11:04
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Mine anmeldelser" page: wishlist and own reviews
2 participants